//   创建路由

import VueRouter from 'vue-router';
import Home from '../pages/Home';
import About from '../pages/About';

const router = new VueRouter({
    routes:[
        {
            path:'/home',  // 默认是精确匹配  加通配符*  可以实现模糊匹配
            component:Home
        },
        {
            path:'/about',
            component:About
        },
        {
            path:'/',
            redirect:'/about'  //  实现最后兜底
        }
    ]
})



export default router